﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Zeus.Mvc.Infrastructure.Controller;

namespace Zeus.Thunder.Web.Controllers
{
    public class RedirectController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Hello from the RedirectController Index method";
            return View("MyView");
        }

        //custom controller
        public ActionResult CustomIndex()
        {
            ViewBag.Message = "This is from custom redirect controller";
            return View("CustomView");
        }

        public ActionResult RedirectPage()
        {
            return Redirect("/Redirect/Index");
        }

        //This is from my custom controller
        public ActionResult CustomRedirect()
        {
            return new CustomRedirectResult { Url = "/Redirect/CustomIndex" };
        }
    }
}















